package edu.nf.supermarket.exception;

/**
 * @author yjj
 * @date 2025-05-19
 */
public class GlobalException extends RuntimeException{
    /**
     * 自定义错误码
     */
    private Integer errorCode;
    public GlobalException(Integer code, String message) {
        super(message);
        this.errorCode = code;
    }

    public Integer getErrorCode() {
        return errorCode;
    }
}
